function backUp(n) {
	history.back(n);
}
var pathname = window.location.pathname + "";
if (!$.getCookie("sign")) {
	if (pathname.indexOf(URL_LOGIN_PAGE) == -1) {// 不是登录页
		$('.home_box').html('<img src="images/nav/denglu.png" />').on('click',
				function() {
					toLoginPage();
				});
	}
}

try {
	if (page_tag == 0) {
		page_tag = 0;
	}
} catch (e) {
	page_tag = -1;
}
// 如果是首页并且没有登录，显示登录按钮 否则都显示回到首页的按钮
if (page_tag == 0) {
	if (!$.getCookie("sign")) {
		$('.home_box').html('<img src="images/nav/denglu.png" />').on(
		// $('.home_box').html('').on(
		'click', function() {
			toLoginPage();
		});
	}
} else {
	$('.home_box').html('<img src="images/nav/home.png" class="home" />').on(
			'click', function() {
				toIndexPage();
			});
}

$('.title-menu').on('click',function(){
	var menuArray = [{
		name : "刷 新 ",
		click : function (){
			window.location.reload(true);
		}
	}];
	var $box = openMenu(menuArray);
	$box.css({
		top : "45px",
		right : "0px",
		width : "100px",
		position: "absolute",
		"border-radius": "0px 0px 0px 10px"
	});
	
	//下次点击先删除
	$('.title-menu').one('click',function(){
		$box.remove();
	});
});
